package org.codefinger.dao.impl.sql.ast;

import org.codefinger.dao.impl.SQLVisitor;
import org.codefinger.dao.impl.sql.Expression;

public class TextExpression implements Expression {

	private String	text;

	public TextExpression(String text) {
		super();
		this.text = text;
	}

	@Override
	public boolean matchVisit(SQLVisitor visitor) {
		visit(visitor);
		return true;
	}

	@Override
	public void visit(SQLVisitor visitor) {
		visitor.appendSQL(text);
	}
	
}
